package com.llpy.mapper;

import com.llpy.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface UserMapper extends MongoRepository<User, String> {
    User findByUsername(String username);

    Page<User> findByNicknameRegex(String regex, Pageable pageable);
}
